Repository navigation
test(clients): verify unrelated launcher preservation - #3399
wunianze666-netizen wants to merge 1 commit into
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] This test-only change appears safe to merge. SummaryAdds JSON and TOML tests proving that uninstall preserves an unrelated absolute launcher named
No actionable issues or rule violations were found. Tests were not run during this review. Live supersession status could not be checked because GitHub access was unavailable; the supplied description says #3410 was superseded, not this PR. Reviews (3) · Last reviewed commit: "test(clients): verify unrelated launcher..." · Reviewed by Greptile |
0d3f230 to
3226bf3
Compare
3226bf3 to
8a68d07
Compare
8a68d07 to
ede9901
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
TL;DR: I ran the new tests on Linux. Both new cases pass on main's source. They also fail when I break the ownership check on purpose, so they do guard it. ResultsI used Node 24.18.0 and one file, clientLifecycle.test.ts. This PR only adds tests, so there is no bug to reproduce.
The break was one line. It sat in the identity check for client entries. It made any absolute path ending in the rea binary name count as owned. Without that line the new cases pass, so they catch exactly that mistake. The checks on GitHub for this head ran. I read them from the checks list and did not run them. Test shards 1 to 5, Source tests, Static checks, Portable tests and CI required all show success. The Windows and native lanes show skipped, as this PR only touches a test. Not run
Thanks, wunianze666-netizen, for all of the work on this PR. Test setupCommandsgit -C ~/code/rea-mirror/rea.git archive 89faa863ed472d8a13a826014331d3b81cfc5de3 | tar -x -C /tmp/t10-1015/main
git -C ~/code/rea-mirror/rea.git diff 89faa863e...refs/pull/3399/head > /tmp/t10-1015/3399.diff
npm ci && npm run build && npm run test:prepare
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts # main, 56 pass
git apply /tmp/t10-1015/3399.diff
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts # patched, 58 pass
# one line in ClientRegistrationIdentity.ts changed so an absolute path ending in the rea name counts as owned
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts # 2 fail, 56 pass🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Current validation follow-up, 2026-10-22:
Three PRs remain open and unmerged. Author readiness declarations remain unchanged for the human owner; code CI does not attest to human review or authorize merging. No replacement PR, close/reopen refresh or target capture/replay was performed. |
Summary
Verify that JSON/TOML client configurations with an unrelated absolute executable named
rearetain their exact original bytes, create no backup and leave that executable untouched. Also make the existing directory-link protection executable on Windows by declaring a junction explicitly.Problem and expected behavior
A basename alone does not prove launcher ownership. These real-filesystem negative controls catch an accidental broadening of the existing identity rule. No executable is launched. No linked issue: the controls arose while checking obsolete positive launcher fixtures; main subsequently corrected those positives, which were removed from this PR.
Change and scope
One test-file change, within the existing lifecycle scope. Production ownership, configuration removal and cleanup assertions are unchanged. The explicit directory link uses junction on Windows and directory symlink elsewhere. No new provider or execution authority; a separate maintainer scope decision is not applicable.
Contract and boundary impact
Expected effects of verification:
The checked write effect is confined to self-owned test-temporary configurations and directory links; this PR adds no production mutation.
Evidence and regression coverage
Tests: JSON/TOML foreign absolute launcher preservation and existing directory-link control.
Base evidence: initial obsolete owned-launcher positive fixtures failed on unchanged
7c962cc7; main corrected them before this final delta. They are not claimed as this PR's repair.External negative control: CassieFox23's report reports Linux main
89faa863e56 passing, applied diff 58 passing, and two new failures when ownership was deliberately weakened. This is their execution, not ours or proof of adoption.Remaining gaps: local Windows ran only four lifecycle and four cache-policy controls; the other 52 local lifecycle and two shell-cache controls were not executed. No installed-client/provider compatibility claim.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
Head remains
ede9901d2c559e2501fce90bbf06baabe119d7be, based oncbc0e97; no new source push or local test rerun in this body-only follow-up.npm run check— passed typecheck/lint/format/metadata/module/architecture checks.check:fast; it is preserved verbatim, not represented as a new local run.Compatibility, safety, and release
Author readiness
Human owner: @wunianze666-netizen
AI-assisted preparation. The human owner's initial declaration remains pending.
Before merge
Maintainer blocker verification
Fresh verification on this exact head, macOS arm64, Node 24.18.0/npm 11.16.0:
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.tspassed 56/56, including the JSON/TOML foreign absolute-launcher cases;npm run check:fastpassed. Windows execution was not rerun in this pass. Human author-readiness declarations remain for the owner to complete; these checks do not attest to human review.Withdrawal — 2026-10-22
The human owner has explicitly chosen to withdraw this test-only proposal and prioritize a different contribution. The existing branch, verification evidence and external reports are preserved. This is a prioritization decision: it does not mean the tests were merged, superseded by an equivalent upstream change, or proven incorrect. No author-readiness declaration is made. #3293 and #3425 remain separate open proposals.